Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: loading csharp, markdown-math, and search-result syntax failed #680

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

sebthom
Copy link
Member

@sebthom sebthom commented Jan 30, 2024

This PR fixes parsing of some TextMate syntax files that use negative variable lookbehinds which is not supported by the joni regex library. See #677

Currently this is done in a rather naive but performant way by rewriting specific incompatible regex patterns to forms parseable by joni.
E.g. patterns starting with (?<!\.\s*) are rewritten to (?<!\.)\s* and patterns starting with (?<=^\s*) are rewritten to (?<=^)\s*

@github-actions github-actions bot added the bug label Jan 30, 2024
@sebthom sebthom merged commit d68f98f into eclipse-tm4e:main Jan 30, 2024
7 checks passed
@sebthom sebthom deleted the improve branch January 30, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant